
package com.gitee.jmash.oidc.oauth2.models;

import com.gitee.jmash.oidc.oauth2.enums.GrantType;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * /oauth/token Model.
 *
 * @author CGD
 *
 */
public class TokenRefreshModel {

  @NotNull
  private GrantType grantType;

  @NotBlank
  private String clientId;

  @NotBlank
  private String clientSecret;

  /** 刷新Token. */
  @NotBlank
  private String refreshToken;

  /** 授权范围. */
  private String scope;

  public String getClientId() {
    return clientId;
  }

  public void setClientId(String clientId) {
    this.clientId = clientId;
  }

  public String getClientSecret() {
    return clientSecret;
  }

  public void setClientSecret(String clientSecret) {
    this.clientSecret = clientSecret;
  }

  public GrantType getGrantType() {
    return grantType;
  }

  public void setGrantType(GrantType grantType) {
    this.grantType = grantType;
  }

  public String getRefreshToken() {
    return refreshToken;
  }

  public void setRefreshToken(String refreshToken) {
    this.refreshToken = refreshToken;
  }

  public String getScope() {
    return scope;
  }

  public void setScope(String scope) {
    this.scope = scope;
  }

}
